<!doctype HTML>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
selection_test(
  'ab',
  selection => {
    const body = selection.document.body;
    body.setAttribute('contenteditable', 'true');
    body.focus();
  },
  '|ab',
  'Focus to editable body should set caret instead of selecting body contents');
</script>
